<?php
/// In order to use this script freely
/// you must leave the following copyright
/// information in this file:
/// Copyright 2012 www.turningturnip.co.uk
/// All rights reserved.

include("connection.php");

$user_id = trim(mysql_real_escape_string($_POST["user_id"]));
		$login_id = trim(mysql_real_escape_string($_POST["login_id"]));
		$nama = trim(mysql_real_escape_string($_POST["nama"]));
		$alamat = trim(mysql_real_escape_string($_POST["alamat"]));
		$kota = trim(mysql_real_escape_string($_POST["kota"]));
		$negara = trim(mysql_real_escape_string($_POST["negara"]));
		$kode_pos = trim(mysql_real_escape_string($_POST["kode_pos"]));
		$no_telp = trim(mysql_real_escape_string($_POST["no_telp"]));
		$no_hp = trim(mysql_real_escape_string($_POST["no_hp"]));
		$email = trim(mysql_real_escape_string($_POST["email"]));
		$password = trim(mysql_real_escape_string($_POST["password"]));
		
$results = mysql_query("INSERT INTO mst_user (id, user_id, login_id, nama, alamat, kota, negara, kode_pos, no_telp, no_hp, email, password)
	VALUES ('', '$user_id', '$login_id', '$nama', '$alamat', '$kota', '$negara', '$kode_pos', '$no_telp', '$no_hp', '$email', '$password')");

if($results) { echo "Successfully Added"; } else { die('Invalid query: '.mysql_error()); }

?>

<a href="index.php">Back to index</a>